#include<stdio.h>

int main()
{
	int n,key,sign;
	char c=getchar();
	scanf("%d",&n);
	for(key=1;key<=n;key++)
	{
		for(sign=n-key;sign>0;sign--)
		{
			printf(" ");
		}
		for(sign=1;sign<=key;sign++)
		{
			printf("%c",c);
			if(sign!=key) printf(" ");
			else printf("\n");
		}
	}
	return 0;
} 
